<?php
require_once('configure.php'); ;
$query ="SELECT * FROM karyawan a INNER JOIN biodata b ON a.biodata_id=b.biodata_id ";
$query .= " WHERE b.nama = '{$_GET['nama']}' AND a.karyawan_id  ";
 
$res = my_query($query);  
if( my_num_rows($res) > 0 ){
	$r = my_fetch_array($res);
	if(is_calon($r['karyawan_id']))
		echo '1';
	else echo '0';
}

echo '0';
?>